﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //coco订单返回
    public class CocoInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Content content { get; set; }

        public class Content
        {

            /// <summary>
            /// 
            /// </summary>
            public string orderId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int payPrice { get; set; }

        }
        
    }

    //coco订单上传
    public class CocoOrder
    {
        /// <summary>
        /// 
        /// </summary>
        public string orderSource { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string storeid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string posOrderType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cashierId { get; set; }
        /// <summary>
        /// 会员编号
        /// </summary>
        public string POSNO { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int usePromotion { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int needTableware { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Boolean shareCouponAndPromotion { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int deductionPoint { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalPrice { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalDiscount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalComboDiscount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalCouponAmount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalPoint { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int totalFreight { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int packageFee { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int payPrice { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        public int memberPoint { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int memberPointBrand { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int givePoint { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int givePointBrand { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int giveXjPoint { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int giveXjPointBrand { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int promotionDiscount { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 小计前折扣
        /// </summary>
        public decimal GrosalAMT { get; set; }
        /// <summary>
        /// 小计后折扣
        /// </summary>
        public decimal overAmt { get; set; }
        /// <summary>
        /// 实际销售金额
        /// </summary>
        public decimal changeAmt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sellway { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal beforeDiscAmt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal afterDiscAmt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal DiscAMT { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string memberno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tranNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ShiftNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int SingleMode { get; set; }

        /// <summary>
        /// 订单商品详情
        /// </summary>
        //public List<OrderItem> productInfoJson { get; set; }
        public string productInfoJson { get; set; }

        /// <summary>
        /// 促销信息详情
        /// </summary>
        //public List<PromItem> promotionInfoJson { get; set; }
        public string promotionInfoJson { get; set; }

        /// <summary>
        /// 券信息详情
        /// </summary>
        //public List<CouponItem> couponInfoJson { get; set; }
        public string couponInfoJson { get; set; }

        //促销信息
        public class PromItem
        {
            public string storeid{ get; set; }
            public string tranNo { get; set; }
            public Decimal promItemDiscAmt { get; set; }
            public Decimal promMemberDiscAmt {get; set; }
            public Decimal promDiscAmt { get; set; }
            public Decimal promFullMatchDiscAmt { get; set; }
            public Decimal scoreCalcAmt { get; set; }
            public int posScore { get; set; }
            public int hqScore { get; set; }
            public int totalScore { get; set; }
            public int posScore2 { get; set; }
            public int hqScore2 { get; set; }
            public int totalScore2 { get; set; }
            //还缺几个字段
        }

        //券信息
        public class CouponItem
        {
            public string couponId { get; set; }
            public string couponName { get; set; }
            public string couponType { get; set; }
            public string bousDesc { get; set; }
            public string couponImageUrl { get; set; }
            public string flag { get; set; }
            public int isBuyOneGetOne { get; set; }
            public string securitiesTrander { get; set; }
            public int fixAmt { get; set; }
            public string fixProductIds { get; set; }
            public int qty { get; set; }
            public int maxNum { get; set; }
            public int useNum { get; set; }
            public int discountAmount { get; set; }
            public int needPayAmt { get; set; }
            public int productAmt { get; set; }
            public string productIds { get; set; }
            public string couponOrderMode { get; set; }
            public string couponProductDtos { get; set; }
            public string startDate { get; set; }
            public string endDate { get; set; }
        }

        //商品明细
        public class OrderItem
        {
            /// <summary>
            /// 
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string foodName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int qty { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int finalPrice { get; set; }
            /// <summary>
            /// 小计前折扣
            /// </summary>
            public decimal beforeDiscAmt { get; set; }
            /// <summary>
            /// 小计后折扣
            /// </summary>
            public decimal afterDiscAmt { get; set; }
            /// <summary>
            /// 实际销售金额
            /// </summary>
            public decimal DiscAMT { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string catNo { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string BigclassName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string catNoBigClassNo { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string SubclassName { get; set; }
            /// <summary>
            /// 口味列表
            /// </summary>
            public List<skuProperty> skuInfoList { get; set; }
        }

        public class skuProperty
        {
            /// <summary>
            /// 
            /// </summary>
            public string groupId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string propertyId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int addPrice { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string name { get; set; }
        }
    }
}
